﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using BusinessLogic;
using System.ServiceModel.Web;

namespace ChatService
{
    [ServiceContract(Namespace = "ChatService")]
    interface IChat
    {
        [OperationContract]
        [WebInvoke(ResponseFormat=WebMessageFormat.Json)]
        void Say(string msg);

        [OperationContract]
        [WebInvoke(ResponseFormat = WebMessageFormat.Json)]
        void Whisper(string to, string msg);

        [OperationContract]
        [WebInvoke(ResponseFormat = WebMessageFormat.Json)]
        User[] Join();

        [OperationContract]
        void Leave();
    }
}
